<div class="uk-layui-form">
	<div class="layui-collapse">
		<div class="box-body ukefu-contacts-detail" id="ukefu_contacts_info">
				<div class="layui-colla-content layui-show" style="padding:5px;">
					<table class="layui-table" lay-skin="line">
						<tbody>
							<#if contacts??>
							<tr class="tdHasContorllor design-dropable-td">
								
								<td align="right" nowrap="nowrap">
									联系人名称：
								</td>
								<td >
									<a href="javascript:void(0)" onclick="return false;" data-toggle="tab" data-title="<#if contacts?? && contacts.ctype=='contacts'>联系人<#elseif contacts?? && contacts.ctype=='customer'>客户</#if>（${contacts.name!''}）" data-href="/apps/contacts/view.html?id=${contacts.id!''}"  data-id="contacts${contacts.id!''}" data-type="tabAdd">
										${contacts.name!''}
									</a>
								</td>
								<td align="right" nowrap="nowrap">
									获得时间：
								</td>
								<td >
									<#if contacts.touchtime??>${contacts.touchtime?string('yyyy-MM-dd')}</#if>
								</td>
								
								<td align="right" nowrap="nowrap">
									共享联系人：
								</td>
								<td colspan="5">
									<#if contacts?? && contacts.shares?? && contacts.shares == 'none'>
										不共享（仅创建人和直属上级可见）
									<#elseif contacts?? && contacts.shares?? && contacts.shares == 'all'>
										所有人
									</#if>
								</td>
								
								
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									性别：
								</td>
								<td >
									<#if contacts?? && contacts.gender=='1'>男</#if>
									<#if contacts?? && contacts.gender=='0'>女</#if>
									<#if contacts?? && contacts.gender=='-1'>未知</#if>
								</td>
								<td align="right" nowrap="nowrap">
									生日：
								</td>
								<td >
									${contacts.cbirthday!''}
								</td>
								<td align="right" nowrap="nowrap">
									电话：
								</td>
								<td >
									${contacts.entphone!''}
								</td>
								<td align="right" nowrap="nowrap">
									类别：
								</td>
								<td>
									<#if contacts?? && contacts.ctype=='contacts'>联系人</#if>
									<#if contacts?? && contacts.ctype=='customer'>客户</#if>
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									类型：
								</td>
								<td nowrap="nowrap">
									<#if contacts?? && contacts.ckind?? && contacts.ckind != ''>
									<#list uKeFuDic['com.dic.contacts.ckind'] as macroSysDic>
									<#if contacts.ckind==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									手机号：
								</td>
								<td nowrap="nowrap">
									${contacts.mobileno!''}
								</td>
									<td align="right" nowrap="nowrap">
									电子邮件：
								</td>
								<td>
									${contacts.email!''}
								</td>
								<td align="right" nowrap="nowrap">
									创建时间：
								</td>
								<td nowrap="nowrap">
									<#if contacts.createtime??>${contacts.createtime?string('yyyy-MM-dd HH:mm:ss')}</#if>
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									城市：
								</td>
								<td nowrap="nowrap">
									<#if contacts?? && contacts.province?? && contacts.province != ''>
									<#list uKeFuDic['com.dic.address.area'] as macroSysDic>
									<#if contacts.province==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.city?? && contacts.city != ''>
									<#list uKeFuDic[contacts.city+".subdic"] as macroSysDic>
									<#if contacts.city==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.area?? && contacts.area != ''>
									<#list uKeFuDic[contacts.area+".subdic"] as macroSysDic>
									<#if contacts.area==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									微信号：
								</td>
								<td nowrap="nowrap">
									${contacts.weixin!''}
								</td>
								<td align="right" nowrap="nowrap">
									地址：
								</td>
								<td colspan="5">
									${contacts.address!''}
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									联系人状态：
								</td>
								<td>
									<#if contacts?? && contacts.business?? && contacts.business != ''>
									<#list uKeFuDic['com.dic.contacts.business'] as macroSysDic>
									<#if contacts.business==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									联系人说明：
								</td>
								<td colspan="5">
									${contacts.busmemo!''}
								</td>
							</tr>
							<#if contacts?? && contacts.ctype?? && contacts.ctype == 'customer'>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									客户名称：
								</td>
								<td>
									${contacts.cusname!''}
								</td>
								<td align="right" nowrap="nowrap">
									客户类型：
								</td>
								<td>
									<#if contacts?? && contacts.ekind?? && contacts.ekind != ''>
									<#list uKeFuDic['com.dic.contacts.entype'] as macroSysDic>
									<#if contacts.ekind==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									联系电话（客户）：
								</td>
								<td>
									${contacts.cusphone!''}
								</td>
								<td align="right" nowrap="nowrap">
									电子邮件（客户）：
								</td>
								<td>
									${contacts.cusemail!''}
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									省份城市（客户）：
								</td>
								<td>
									<#if contacts?? && contacts.cusprovince?? && contacts.cusprovince != ''>
									<#list uKeFuDic['com.dic.address.area'] as macroSysDic>
									<#if contacts.cusprovince==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.cuscity?? && contacts.cuscity != ''>
									<#list uKeFuDic[contacts.cuscity+".subdic"] as macroSysDic>
									<#if contacts.cuscity==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
									<#if contacts?? && contacts.cusarea?? && contacts.cusarea != ''>
									<#list uKeFuDic[contacts.cusarea+".subdic"] as macroSysDic>
									<#if contacts.cusarea==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									客户地址：
								</td>
								<td colspan="5">
									${contacts.cusaddress!''}
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									客户级别：
								</td>
								<td>
									<#if contacts?? && contacts.elevel?? && contacts.elevel != ''>
									<#list uKeFuDic['com.dic.contacts.elevel'] as macroSysDic>
									<#if contacts.elevel==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									客户来源：
								</td>
								<td>
									<#if contacts?? && contacts.esource?? && contacts.esource != ''>
									<#list uKeFuDic['com.dic.contacts.esource'] as macroSysDic>
									<#if contacts.esource==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									成熟度（客户）：
								</td>
								<td>
									<#if contacts?? && contacts.maturity?? && contacts.maturity != ''>
									<#list uKeFuDic['com.dic.contacts.maturity'] as macroSysDic>
									<#if contacts.maturity==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									行业（客户）：
								</td>
								<td>
									<#if contacts?? && contacts.industry?? && contacts.industry != ''>
									<#list uKeFuDic['com.dic.contacts.industry'] as macroSysDic>
									<#if contacts.industry==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
							</tr>
							<tr class="tdHasContorllor design-dropable-td">
								<td align="right" nowrap="nowrap">
									客户状态：
								</td>
								<td>
									<#if contacts?? && contacts.cusvalidstatus?? && contacts.cusvalidstatus != ''>
									<#list uKeFuDic['com.dic.contacts.validstatus'] as macroSysDic>
									<#if contacts.cusvalidstatus==macroSysDic.id>${macroSysDic.name!''}</#if>
									</#list>
									</#if>
								</td>
								<td align="right" nowrap="nowrap">
									客户说明：
								</td>
								<td colspan="5">
									${contacts.cusdescription!''}
								</td>
							</tr>
							</#if>
							<#else>
								<tr>
									<td colspan="20" style="height:400px;">
										<div class="ukefu-empty">
											<i class="layui-icon">&#xe63a;</i>
											<div style="">还没有联系人信息</div>
										</div>
									</td>
								</tr>
							</#if>
						</tbody>
					</table>
				</div>
			</div>
	</div>
</div>
